﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Produce.Application.DTO.Output
{
    /// <summary>
    /// 生产日期输出DTO
    /// </summary>
    public class ProductionDateOutput
    {
        /// <summary>
        /// ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime? Date { get; set; }

        /// <summary>
        /// 类型：0-休息，1-上班，2-加班，3-请假
        /// </summary>
        public int? Type { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 客户ID（人员ID），关联到BasicData.CustomerModel
        /// </summary>
        public long? CustomerId { get; set; }

        /// <summary>
        /// 类型名称（格式化显示）
        /// </summary>
        public string TypeName => Type switch
        {
            0 => "休息",
            1 => "上班",
            2 => "加班",
            3 => "请假",
            _ => "未知"
        };
    }
}
